5. Colors in CSS

I. Color Names

Explanation: CSS me 140+ predefined color names hote hain jaise: red, blue, green, gold, crimson, etc. Inhe directly use kiya ja sakta hai.

II. HEX Colors

Explanation: HEX color ek 6-character code hota hai. Jaise: #ff0000 (red), #00ff00 (green), #0000ff (blue). Har 2 characters Red, Green, Blue ko define karte hain.

III. RGB & RGBA

Explanation:
RGB ka matlab hai Red, Green, Blue. Format: rgb(255, 0, 0)
RGBA me A hota hai alpha (opacity): rgba(255, 0, 0, 0.5)

IV. HSL & HSLA

Explanation:
HSL = Hue, Saturation, Lightness. Format: hsl(120, 100%, 50%) (green)
HSLA me alpha (opacity) add hota hai: hsla(240, 100%, 50%, 0.6) (semi-transparent blue)

V. Opacity & Transparent

Explanation:
opacity se pura element transparent ho jata hai. Range: 0 (invisible) to 1 (fully visible)
transparent ek keyword hai jiska matlab full transparent color.